﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ControlExplorer
{
    public static class ApplicationHelper
    {
        private static Color lightThemeBackground = Color.FromArgb(255, 255, 255, 255);
        //private static Color darkThemeBackground = Color.FromArgb(255, 0, 0, 0);

        public static bool IsLightTheme
        {
            get
            {
                var backgroundBrush = (SolidColorBrush)Application.Current.Resources["PhoneBackgroundBrush"];
                return backgroundBrush.Color == lightThemeBackground;
            }
        }
    }
}
